.rxjs-guide-content {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: #1976d2;
  margin-bottom: 16px;
  font-size: 2.5rem;
  font-weight: 300;
}

p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.demo-container {
  margin-top: 24px;
}

.tab-content {
  padding: 24px 0;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #1976d2;
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 500;
}

.demo-item {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.demo-result {
  flex: 1;
  min-width: 300px;
}

.code-example {
  flex: 1;
  min-width: 300px;
}

.code-example h4 {
  color: #333;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
}

.code-example pre {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  border-left: 4px solid #1976d2;
}

.code-example code {
  color: #333;
}

// 计数器样式
.counter-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.counter-value {
  font-size: 2rem;
  font-weight: bold;
  color: #1976d2;
}

.counter-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.counter-controls button {
  min-width: 120px;
}

// 搜索样式
.search-field {
  width: 100%;
  margin-bottom: 16px;
}

.search-info {
  margin-bottom: 16px;
  padding: 12px;
  background: #e3f2fd;
  border-radius: 4px;
}

.search-info p {
  margin: 4px 0;
  font-size: 0.9rem;
}

.search-results {
  max-height: 200px;
  overflow-y: auto;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 4px;
  background: #f8f9fa;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.result-item:hover {
  background: #e9ecef;
}

.result-item mat-icon {
  color: #4caf50;
  font-size: 18px;
}

// API 演示样式
.api-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.api-controls button {
  min-width: 140px;
}

.api-results {
  margin-top: 16px;
}

.api-results h4 {
  color: #333;
  margin-bottom: 12px;
}

.data-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.data-item mat-icon {
  color: #1976d2;
}

.data-content {
  display: flex;
  flex-direction: column;
}

.data-content strong {
  color: #333;
  font-size: 1rem;
}

.data-content span {
  color: #666;
  font-size: 0.9rem;
}

// 定时器样式
.timer-display {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.timer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
}

.timer-item mat-icon {
  color: #1976d2;
  font-size: 24px;
}

.timer-content h4 {
  margin: 0 0 4px 0;
  color: #333;
  font-size: 0.9rem;
}

.timer-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1976d2;
}

// 最佳实践样式
.best-practices {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.practice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

.practice-item mat-icon {
  margin-top: 2px;
}

.practice-content h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1rem;
}

.practice-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.practice-content code {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #d63384;
}

// 表单字段样式
.form-field {
  width: 100%;
  margin-bottom: 16px;
}

// 进度条样式
.progress-bar {
  margin-top: 8px;
}

// 响应式设计
@media (max-width: 768px) {
  .demo-item {
    flex-direction: column;
  }
  
  .counter-controls,
  .api-controls {
    flex-direction: column;
  }
  
  .counter-controls button,
  .api-controls button {
    width: 100%;
  }
  
  .timer-display {
    flex-direction: column;
  }
  
  .timer-item {
    min-width: auto;
  }
}
